{"version":3,"file":"static/chunks/pages/[...slug]-7e2365cc8f1d7dd2.js","mappings":"qaACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,aACA,WACA,OAAeC,EAAQ,KACvB,EACA,kICAO,SAASC,EAAUC,CAAmB,EAC3C,IAAMC,EAAQC,CANd,EACIF,EAAKG,UAAU,CAAC,KAKMH,EAJnB,IAASI,MAAA,CAIUJ,GANR,KAMcK,KAAK,CAAC,KAEtC,OADAJ,EAAMK,KAAK,GACJL,CACT,CCNe,SAASM,IAEtB,GAAM,CACJC,KAAAA,CAAI,CACL,CAAGC,CAHWC,EAAAA,EAAAA,SAAAA,IAGJC,KAAK,CACVX,EAAO,IAAMQ,EAAmBI,IAAI,CAAC,KACrCC,EAAOC,CAAAA,EAAAA,EAAAA,CAAAA,IACb,MAAO,GAAAC,EAAAC,GAAA,EAACC,EAAAA,CAAIA,CAAAA,CAACjB,KAAMkB,SDKWlB,CAAY,CAAEmB,CAAc,EAC1D,IAAMC,EAAYrB,EAAUC,GACtBqB,EAActB,EAAUoB,UAC9B,EAAiBG,MAAM,EACnBF,CAAS,CAAC,EAAE,GAAKC,CAAW,CAAC,EAAE,EACjCD,EAAUd,KAAK,GARV,CAAC,MAAOL,EAAMsB,MAAM,CAAC,GAAUC,EAAKF,MAAM,EAAE,CAACV,IAAI,CAAC,MAMzBZ,CAOlC,ECfqCA,EAAMa,EAAKY,QAAQ,EAAGC,sBAAoB,OAAOC,wBAAsB,WAAWC,0BAAwB,iBAC/I","sources":["webpack://_N_E/?102c","webpack://_N_E/./src/utils/paths.ts","webpack://_N_E/./src/pages/[...slug].tsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/[...slug]\",\n function () {\n return require(\"private-next-pages/[...slug].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/[...slug]\"])\n });\n }\n ","export function ensureSlash(path: string | null) {\n if (!path) return '/';\n if (path.startsWith('/')) return path;\n return `/${path}`;\n}\n\nexport function splitPath(path: string | null) {\n const parts = ensureSlash(path).split('/');\n parts.shift();\n return parts;\n}\n\nexport function joinPath(parts: string[]) {\n return ['', ...parts.filter((part) => part.length)].join('/');\n}\n\nexport function stripPathPrefix(path: string, prefix: string) {\n const pathParts = splitPath(path);\n const prefixParts = splitPath(prefix);\n if (!prefixParts.length) return path;\n if (pathParts[0] === prefixParts[0]) {\n pathParts.shift();\n } else {\n return path;\n }\n return joinPath(pathParts);\n}\n","import { useRouter } from 'next/router';\nimport Page from 'components/pages/Page';\nimport { useSite } from 'context/site';\nimport { stripPathPrefix } from '@/utils/paths';\nexport default function SlugPage() {\n const router = useRouter();\n const {\n slug\n } = router.query;\n const path = '/' + (slug as string[]).join('/');\n const site = useSite();\n return ;\n}"],"names":["window","__NEXT_P","push","__webpack_require__","splitPath","path","parts","ensureSlash","startsWith","concat","split","shift","SlugPage","slug","router","useRouter","query","join","site","useSite","jsx_runtime","jsx","Page","stripPathPrefix","prefix","pathParts","prefixParts","length","filter","part","basePath","data-sentry-element","data-sentry-component","data-sentry-source-file"],"sourceRoot":""}